package com.hkyl.hospital.service;

import com.hkyl.hospital.entity.User;

import java.util.List;

/**
 * @author gao
 * @date 2023/07/09 11:16:28
 */
public interface UserService {
    int save(User user);
    int update(User user);
    List<User>findAll();
    User findOne(Integer id);
    int delete(Integer id);
    List<User> findSomeByPage(Integer pageNum,Integer pageSize);

    int distributeRoles(Integer userId, List<Integer> roles);

    List<User> selectByDeptId(Integer deptId,Integer pageNumber,Integer pageSize);
}
